#include <iostream>

using namespace std;

void fanzhuan(int * a, int l);

int main(void)
{
	int a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

	fanzhuan(a, 10);

	return 0;
}

void fanzhuan(int * a, int l)
{
	int i, j;
	int t;
	for(i = 0, j = l - 1; i < j; i ++, j --)
	{
		t = a[i];
		a[i] = a[j];
		a[j] = t;
	}	
	for(i = 0; i < l; i ++)
	{
		cout << "a" << i+1 << "= " << a[i] << endl;
	}
}
